package com.shycloud.mido.member.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;

import lombok.Data;

/**
 * 教师开通教辅权限表
 */
@Data
@TableName(value = "org_teacher_assist_permission")
public class OrgTeacherAssistPermission {

    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;
    /** 类型： 1-试用  2-购买 */
    @TableField(value = "`type`")
    private String type;
    /** 教师ID */
    @TableField(value = "teacher_id")
    private String teacherId;
    /** 权限开始时间 */
    @TableField(value = "start_time")
    private LocalDateTime startTime;
    /** 开通时长 */
    @TableField(value = "duration")
    private long duration;
    /** 权限到期时间 */
    @TableField(value = "end_time")
    private LocalDateTime endTime;

    public static final String COL_ID = "id";

    public static final String COL_TYPE = "type";

    public static final String COL_TEACHER_ID = "teacher_id";

    public static final String COL_START_TIME = "start_time";

    public static final String COL_DURATION = "duration";

    public static final String COL_END_TIME = "end_time";
}